package com.wolfcode.mapper;

import com.wolfcode.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yinyin
 * @create 2022/08/19 下午 8:33
 */
@Mapper
@Repository
public interface ProductMapper {
    //查询全部
    List<Product> findAll();
    //查询单个
    Product findOne(Long id);
    //添加
    void addProduct(Product product);
    //修改
    void updateProduct(Product product);
    //删除
    void deleteProduct(Long id);
}
